package cn.virens.cmpt.rabbit;

import com.rabbitmq.client.AMQP.BasicProperties;
import com.rabbitmq.client.Envelope;

public class RabbitConsumerProps {
	private BasicProperties properties;
	private Envelope envelope;

	private Boolean reply;
	private String mac;
	private String cmd;

	public String getCmd() {
		return cmd;
	}

	public void setCmd(String command) {
		this.cmd = command;
	}

	public String getMac() {
		return mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}

	public Boolean getReply() {
		return reply;
	}

	public void setReply(Boolean reply) {
		this.reply = reply;
	}

	public Envelope getEnvelope() {
		return envelope;
	}

	public void setEnvelope(Envelope envelope) {
		this.envelope = envelope;
	}

	public BasicProperties getProperties() {
		return properties;
	}

	public void setProperties(BasicProperties properties) {
		this.properties = properties;
	}

	public long getDeliveryTag() {
		return envelope.getDeliveryTag();
	}

	public String getReplyTo() {
		return properties.getReplyTo();
	}

	public String getCorrelationId() {
		return properties.getCorrelationId();
	}

}
